package com.git.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.git.domain.DemoEntity;
import com.git.mapper.DemoMapper;
import com.git.mapper.DemoSqlMapper;
import com.git.service.DemoService;

@Service
public class DemoServiceImpl implements DemoService {
	@Autowired
	private DemoMapper demoMapper;
	private DemoSqlMapper demoSqlMapper;
	
	@Override
	public List<DemoEntity> getAll() {
		return this.demoMapper.select(new DemoEntity());
	}

	@Override
	public void insert() {
		this.demoMapper.insert(new DemoEntity());
	}
}
